* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  padding-top: 50px;
  background-color: #9d4008;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* 导航栏基础样式 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px 0 15px;
  background-color: #fffdf8;
  border-bottom: 2px solid #a0522d;
  height: 50px;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

/* Logo 样式 */
.logo img {
  width: 125px;
  height: 50px;
}

/* 导航链接样式 */
.nav-links {
  display: flex;
  gap: 50px;
  font-family: "Modak", Helvetica;
  font-weight: 400;
  color: #9d4008;
  font-size: 15px;
  letter-spacing: 0.4px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav-links a {
  text-decoration: none;
  color: #9d4008;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Hamburger 按钮基础样式 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: #9d4008;
  transition: all 0.3s ease-in-out;
  border-radius: 1px;
}

/* Hamburger 动画效果 */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 移动端样式 */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

/* 更小屏幕的样式 */
@media (max-width: 430px) {
  .hamburger {
    width: 20px;
    height: 15px;
  }

  .hamburger span {
    height: 2px;
  }

  /* 调整小屏幕下的动画效果 */
  .hamburger.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
}

/* 设置三条线的位置 */
.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 7px;
}

.hamburger span:nth-child(3) {
  top: 14px;
}

/* 在移动端显示 hamburger */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 45px;
    left: 0;
    width: 100%;
    height: calc(100vh - 45px);
    background-color: #fffdf8;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    z-index: 999;
    transition: all 0.3s ease-in-out;
  }

  .nav-links.active {
    display: flex;
  }
}

/* Hover 效果 */
.nav-links a:hover {
  color: #c2500a;
  transform: translateY(-2px);
}

/* 添加下划线效果 */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #9d4008;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section 基础样式 */
.hero-section {
  width: 100%;
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  animation-delay: 0.3s;
  z-index: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.HeroImages {
  width: 100%;
  max-width: auto;
  height: auto;
  min-height: 320px;
  border-radius: 4.2vw;
  object-fit: cover;
  opacity: 0;
  animation: scaleIn 1.2s ease-out forwards;
  animation-delay: 0.5s;
}

/* 手机端响应式 */
@media screen and (max-width: 430px) {
  .navbar {
    width: 100%;
    z-index: 1000;
    height: 40px;
  }

  /* 确保导航栏和内容不受影响 */
  .navbar {
    height: 40px;
  }
}

/* 动画键帧 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: translate(0%, 0%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(0%, 0%) scale(1);
  }
}

/* 响应式样式 */
@media screen and (max-width: 768px) {
  .navbar {
    height: 45px;
    padding: 0 20px 0 10px;
  }

  .logo img {
    width: 100px;
    height: 40px;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media screen and (max-width: 430px) {
  .navbar {
    width: 100%;
    height: 40px;
  }

  .BrownFrame {
    width: 100%;
    height: 50%;
    padding: 20px;
    border-radius: 30px;
  }
}

/* 确保画在手机端也正常工作 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 导航链接的基础样式 */
.nav-links a {
  text-decoration: none;
  color: #9d4008;
  transition: all 0.3s ease; /* 添加过渡效果 */
  position: relative; /* 为下划效果 */
  padding: 5px 0; /* 添加一些内边距 */
}

/* Hover 效 */
.nav-links a:hover {
  color: #c2500a; /* 稍微变亮的颜色 */
  transform: translateY(-2px); /* 轻微上移 */
}

/* 添加下划效果 */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #9d4008;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* 移动端菜单的 hover 效果 */
@media (max-width: 768px) {
  .nav-links a {
    padding: 15px 0;
    width: 80%;
    max-width: 300px;
    text-align: center;
    border-bottom: 1px solid rgba(157, 64, 8, 0.2);
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background-color: rgba(157, 64, 8, 0.05); /* 添加背景色变化 */
    transform: translateY(-2px); /* 保持轻微上移效果 */
    color: #c2500a;
  }

  /* 移动端不显示下划线效果 */
  .nav-links a::after {
    display: none;
  }
}

.history-section {
  display: flex;
  flex-direction: column;
  gap: 0px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease-out;
  transition-delay: 0.5s;
  overflow: hidden;
}

.history-section.show {
  opacity: 1;
  transform: translateY(0);
}

.history-border {
  z-index: -1;
  width: 110%;
  height: 50px;
  object-fit: cover;
}

.history-border-top {
  object-position: top;
  transform: translateY(1px);
}

.history-border-bottom {
  object-position: bottom;
  transform: translateY(-1px);
}

.history-bg {
  position: absolute;
  width: 100%;
  height: 650px;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transform: scale(1.05);
  transition: all 1.5s ease-out;
}

.history-container {
  position: relative;
  width: 100%;
  padding: 45px 25px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 25px;
  align-items: center;
  background-color: #fffdf8;
}

.history-details-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.history-title {
  color: #9d4008;
  font-size: 50px;
  font-family: "Modak", cursive;
  font-weight: 400;
  text-align: center;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-line {
  width: 678px;
  height: 0;
  border: 1px solid #9d4008;
  margin: 10px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-content {
  max-width: 700px;
  color: #9d4008;
  font-size: 17px;
  font-family: "Afacad", sans-serif;
  font-weight: 400;
  line-height: 30px;
  text-align: center;
  margin: 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-images {
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-img-left {
  width: 244px;
  height: 495px;
  animation: swayLeft 6s ease-in-out infinite;
  transform-origin: center center; /* 修改旋转原点到中心 */
}

.history-img-right {
  width: 259px;
  height: 495px;
  animation: swayRight 6s ease-in-out infinite;
  transform-origin: center center; /* 修改旋转原点到中心 */
}

/* 添加悬停时暂停动画的效果 */
.history-img-left:hover,
.history-img-right:hover {
  animation-play-state: paused;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .history-img-left,
  .history-img-right {
    animation: none; /* 在小屏幕上禁用动画 */
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .history-images {
    display: none;
  }
}

@media (max-width: 768px) {
  .history-title {
    font-size: 40px;
  }

  .history-line {
    width: 80%;
  }

  .history-content {
    font-size: 18px;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .history-title {
    font-size: 30px;
  }

  .history-content {
    font-size: 16px;
    line-height: 24px;
  }
}

.mission-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: fit-content;
  min-height: 600px;
}

@media (max-width: 1200px) {
  .mission-section {
    min-height: 500px;
  }
}

@media (max-width: 800px) {
  .mission-section {
    min-height: 400px;
  }
}

.mission-container {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease-out;
}

.mission-title {
  color: white;
  font-size: 50px;
  font-family: "Modak", cursive;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-line {
  width: 678px;
  height: 0;
  border: 0.5px solid white;
  margin: 10px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-content {
  max-width: 600px;
  color: white;
  font-size: 17px;
  font-family: "Afacad", sans-serif;
  font-weight: 400;
  line-height: 27px;
  text-align: center;
  margin: 20px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-images {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-img1 {
  position: static;
  width: 196px;
  height: 159px;
  margin-top: 60px;
  animation: floatDown 5s ease-in-out infinite;
  transform-origin: center center;
}

.mission-img2 {
  position: static;
  width: 238px;
  height: 268px;
  animation: floatUp 5s ease-in-out infinite;
  transform-origin: center center;
}

.mission-img3 {
  position: static;
  width: 195px;
  height: 157px;
  margin-top: 70px;
  animation: floatDown 5s ease-in-out infinite;
  animation-delay: 0.5s;
  transform-origin: center center;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .mission-images {
    display: none;
  }
}

@media (max-width: 768px) {
  .mission-title {
    font-size: 40px;
  }

  .mission-line {
    width: 80%;
  }

  .mission-content {
    font-size: 18px;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .mission-title {
    font-size: 30px;
  }

  .mission-content {
    font-size: 16px;
    line-height: 24px;
  }
}

.core-value-section {
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url("image/core value bg img.png");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

.core-value-bg {
  position: absolute;
  width: 100%;
  height: 1625px;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: all 1.5s ease-out;
}

.core-value-container {
  position: relative;
  width: 100%;
  max-width: 1500px;
  height: auto;
  margin: 0 auto;
  padding: 0 20px 120px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease-out;
}

.core-value-title {
  color: #9d4008;
  font-size: 50px;
  font-family: "Modak", cursive;
  font-weight: 400;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.core-value-line {
  width: 800px;
  height: 0;
  border: 1px #9d4008 solid;
  margin: 10px 0 40px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.core-grid {
  display: grid;
  justify-items: center;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  gap: 0px 20px;
}

.core-card {
  width: 100%;
  max-width: 300px;
  height: 100%;
  position: relative;
  margin: 0;
}

.core-card-wide {
  height: 100%;
  position: relative;
  margin: 0;
  flex-grow: 1;
  left: 0;
  transform: none;
}

.core-number {
  color: #9d4008;
  font-size: 70px;
  font-family: "Modak", cursive;
  font-weight: 400;
  text-align: center;
  position: absolute;
  left: 55%;
  transform: translateX(-50%);
}

.core-content {
  width: 100%;
  height: 200px;
  border: 1px #9d4008 solid;
  border-radius: 41px;
  margin-top: 50px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.core-heading {
  color: #9d4008;
  font-size: 40px;
  font-family: "Afacad", sans-serif;
  font-weight: 600;
  text-align: center;
  margin-top: 10px;
}

.core-text {
  color: #9d4008;
  font-size: 15px;
  font-family: "Afacad", sans-serif;
  font-weight: 400;
  text-align: center;
  line-height: 20px;
  max-width: 250px;
  margin-top: 10px;
}

.sustainability-img {
  position: absolute;
  right: -150px;
  bottom: -200px;
  width: 221px;
  height: 293px;
  transform: translateY(-50%);
}

@media (max-width: 768px) {
  .core-value-line {
    width: 80%;
  }
}

@media (max-width: 480px) {
  .core-value-title {
    font-size: 40px;
  }

  .core-heading {
    font-size: 30px;
  }

  .core-text {
    font-size: 14px;
  }
}

.core-card:last-child {
  grid-column: span 2 / span 2;
  max-width: unset;
}

.core-number:last-child {
  left: 50%;
}

/* Back to Top Button 样式 */
#backToTop {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  width: 40px;
  height: 40px;
  outline: 1px solid white;
  background-color: #9d4008;
  color: #f8ede3;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#backToTop:hover {
  background-color: #b64807;
  transform: translateY(-3px);
}

/* 手机端调整 */
@media screen and (max-width: 430px) {
  #backToTop {
    bottom: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}

/* 照片轮播样式 */
.photo-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: #fffdf8;
}

.slider-container {
  width: 100%;
  overflow: hidden;
  background-color: #fffdf8;
}

.slider-track {
  display: flex;
  animation: scroll 30s linear infinite;
  gap: 0;
  width: fit-content;
  background-color: #fffdf8;
}

.slide {
  flex: 0 0 250px;
  width: 250px;
  height: 300px;
  margin: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-flex-shrink: 0;
}

/* 添加动动画 */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 12)); /* 移动第一图片的总宽度 */
  }
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
  .slide {
    flex: 0 0 200px;
    width: 200px;
  }

  @keyframes scroll {
    100% {
      transform: translateX(calc(-200px * 12));
    }
  }
}

@media screen and (max-width: 430px) {
  .slide {
    flex: 0 0 180px;
    width: 180px;
  }

  @keyframes scroll {
    100% {
      transform: translateX(calc(-180px * 12));
    }
  }
}

/* 添加鼠标悬停暂停效果 */
.slider-track:hover {
  animation-play-state: paused;
}

/* 添加动画基础样式 */
.step-1-container,
.step-2-container,
.step-3-container,
.tips-container {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

/* 显示类 */
.step-1-container.show,
.step-2-container.show,
.step-3-container.show,
.tips-container.show {
  opacity: 1;
  transform: translateY(0);
}

/* Step 1 内容动画 */
.step-1-title,
.bagel-grid,
.step-1-content,
.step-2-title,
.step-2-image,
.step-2-text-content,
.step-3-title,
.step-3-image,
.step-3-text-content,
.tips-title,
.tip-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease-out;
}

/* 显示状态类 */
.show .step-1-title,
.show .bagel-grid,
.show .step-1-content,
.show .step-2-title,
.show .step-2-image,
.show .step-2-text-content,
.show .step-3-title,
.show .step-3-image,
.show .step-3-text-content,
.show .tips-title,
.show .tip-card {
  opacity: 1;
  transform: translateY(0);
}

/* 为不同元素设置更长的延迟时间，让它们一个接一个出现 */
/* Step 1 内容动画 */
.show .step-1-title {
  transition-delay: 0.2s;
}
.show .bagel-grid {
  transition-delay: 0.6s;
}
.show .step-1-content {
  transition-delay: 1s;
}

/* Step 2 内容动画 */
.show .step-2-title {
  transition-delay: 0.2s;
}
.show .step-2-image {
  transition-delay: 0.6s;
}
.show .step-2-text-content {
  transition-delay: 1s;
}

/* Step 3 内容动画 */
.show .step-3-title {
  transition-delay: 0.2s;
}
.show .step-3-image {
  transition-delay: 0.6s;
}
.show .step-3-text-content {
  transition-delay: 1s;
}

/* Tips 内容动画 */
.show .tips-title {
  transition-delay: 0.2s;
}
.show .tip-card:nth-child(1) {
  transition-delay: 0.6s;
}
.show .tip-card:nth-child(2) {
  transition-delay: 1s;
}
.show .tip-card:nth-child(3) {
  transition-delay: 1.4s;
}

/* 定义浮动动画 - 改为上下移动 */
@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 鼠标悬停时暂停动画 */
.step-2-image:hover img,
.step-3-image:hover img {
  animation-play-state: paused;
}

/* 移动端调整动画幅度 */
@media (max-width: 768px) {
  @keyframes floatAnimation {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
    100% {
      transform: translateY(0);
    }
  }
}

/* 修改导航栏中 ABOUT US 链接的颜色 */
.nav-links a[href="about us.html"] {
  color: #c2500a; /* 更亮的橙色 */
  font-weight: 400;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 移除这个链接的下划线效果 */
.nav-links a[href="about us.html"]::after {
  display: none;
}

/* 保持hover效果 */
.nav-links a[href="about us.html"]:hover {
  color: #c2500a;
  transform: translateY(-2px);
}

/* 移动端样式 */
@media (max-width: 768px) {
  .nav-links a[href="about us.html"] {
    background-color: rgba(157, 64, 8, 0.1);
  }
}

/* 基础动画样式 */
.mission-container,
.core-value-container {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s ease-out;
}

/* 显示状态 */
.mission-container.show,
.core-value-container.show {
  opacity: 1;
  transform: translateY(0);
}

/* History 部分的子元素动画 */
.history-title,
.history-line,
.history-content,
.history-images {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.show .history-title {
  transition-delay: 0.3s;
}
.show .history-line {
  transition-delay: 0.6s;
}
.show .history-content {
  transition-delay: 0.9s;
}
.show .history-images {
  transition-delay: 1.2s;
}

/* Mission 部分的子元素动画 */
.mission-title,
.mission-line,
.mission-content,
.mission-images {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.show .mission-title {
  transition-delay: 0.3s;
}
.show .mission-line {
  transition-delay: 0.6s;
}
.show .mission-content {
  transition-delay: 0.9s;
}
.show .mission-images {
  transition-delay: 1.2s;
}

/* Core Value 部分的子元素动画 */
.core-value-title,
.core-value-line,
.core-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.show .core-value-title {
  transition-delay: 0.3s;
}
.show .core-value-line {
  transition-delay: 0.6s;
}
.show .core-card:nth-child(1) {
  transition-delay: 0.9s;
}
.show .core-card:nth-child(2) {
  transition-delay: 1.1s;
}
.show .core-card:nth-child(3) {
  transition-delay: 1.3s;
}
.show .core-card:nth-child(4) {
  transition-delay: 1.5s;
}
.show .core-card:nth-child(5) {
  transition-delay: 1.7s;
}

/* 当这些元素显示时的状态 */
.show .history-title,
.show .history-line,
.show .history-content,
.show .history-images,
.show .mission-title,
.show .mission-line,
.show .mission-content,
.show .mission-images,
.show .core-value-title,
.show .core-value-line,
.show .core-card {
  opacity: 1;
  transform: translateY(0);
}

/* 添加左右摇摆动画的关键帧 */
@keyframes swayLeft {
  0% {
    transform: translateX(0) rotate(-1deg);
  }
  50% {
    transform: translateX(-8px) rotate(1deg);
  }
  100% {
    transform: translateX(0) rotate(-1deg);
  }
}

@keyframes swayRight {
  0% {
    transform: translateX(0) rotate(1deg);
  }
  50% {
    transform: translateX(8px) rotate(-1deg);
  }
  100% {
    transform: translateX(0) rotate(1deg);
  }
}

/* 添加悬停时暂停动画的效果 */
.history-img-left:hover,
.history-img-right:hover {
  animation-play-state: paused;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .history-img-left,
  .history-img-right {
    animation: none; /* 在小屏幕上禁用动画 */
  }
}

/* 添加上下浮动动画的关键帧 */
@keyframes floatUp {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes floatDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(15px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 修改 mission 图片的样式 */
.mission-img1 {
  position: static;
  width: 196px;
  height: 159px;
  margin-top: 60px;
  animation: floatDown 5s ease-in-out infinite;
  transform-origin: center center;
}

.mission-img2 {
  position: static;
  width: 238px;
  height: 268px;
  animation: floatUp 5s ease-in-out infinite;
  transform-origin: center center;
}

.mission-img3 {
  position: static;
  width: 195px;
  height: 157px;
  margin-top: 70px;
  animation: floatDown 5s ease-in-out infinite;
  animation-delay: 0.5s;
  transform-origin: center center;
}

/* 添加悬停时暂停动画的效果 */
.mission-img1:hover,
.mission-img2:hover,
.mission-img3:hover {
  animation-play-state: paused;
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .mission-img1,
  .mission-img2,
  .mission-img3 {
    animation: none; /* 在小屏幕上禁用动画 */
  }
}

/* 添加背景图片的动画样式 */
.history-bg,
.core-value-bg {
  opacity: 0;
  transform: scale(1.05);
  transition: all 1.5s ease-out;
}

.history-bg.show,
.core-value-bg.show {
  opacity: 1;
  transform: scale(1);
}

/* 调整其他元素的动画延迟，让它们在背景后出现 */
.mission-container.show {
  transition-delay: 0.5s;
}
.core-value-container.show {
  transition-delay: 0.5s;
}

.footer {
  position: relative;
  width: 100%;
  height: 100%;
  display: block; /* 防止任何意外的间距 */
}

.footer-background {
  width: 100%;
  height: 80px;
  object-fit: cover;
  object-position: top;
}

.footer-content {
  width: 100%;
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  padding-bottom: 0px;
}

.footer-logo {
  width: 200px;
  height: 80px;
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-nav a {
  color: white;
  font-size: 18px;
  font-family: "Modak", cursive;
  text-decoration: none;
  transition: all 0.3s ease;
  /* 添加以下文字渲染优化属性 */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.3px; /* 稍微增加字间距提高可读性 */
}

.footer-nav a:hover {
  color: #fff6c7; /* 鼠标悬停时改变文字颜色 */
  transform: translateY(-2px); /* 轻微向上移动 */
}

.social-icons {
  width: 100%;
  max-width: 250px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease; /* 稍微延长动画时间使旋转更流畅 */
}

.social-icon:hover {
  transform: scale(1.2) rotate(360deg);
  cursor: pointer;
}

.social-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.footer-line {
  width: 100%;
  height: 1px;
  background-color: white; /* 改用background-color替代border */
  margin: 20px auto 0px auto; /* 居中显示 */
  opacity: 1; /* 确保可见性 */
  display: block; /* 确保显示为块级元素 */
}

.copyright {
  color: white;
  font-size: 12px;
  font-family: "Libre Caslon Text", serif;
  line-height: 40px;
  text-align: center;
}

/* 更新active导航链接样式 */
.nav-links a.active {
  color: #c2500a; /* 高亮颜色 */
  font-weight: 400;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 移除下划线效果 */
.nav-links a.active::after {
  display: none; /* 移除下划线 */
}

/* 更新hover效果 */
.nav-links a:hover:not(.active) {
  color: #c2500a;
  transform: translateY(-2px);
}

@media screen and (max-width: 600px) {
  .footer-background {
    display: none;
  }
  .footer-nav {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  a {
    text-align: center;
  }

  .social-icons {
    max-width: 160px;
  }

  .footer-line {
    margin: 0;
  }

  .footer-content {
    padding: 10px;
    padding-bottom: 0px;
  }
}

@media screen and (max-width: 700px) {
  .core-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .history-border {
    display: none;
  }
  .core-value-section {
    background-image: none;
    background-color: #fffdf8;
    padding: 60px 20px;
  }
  .core-value-title {
    margin-top: 0;
  }
  .core-value-container {
    padding-bottom: 0;
  }
  .core-card {
    display: flex;
    max-width: unset;
    align-items: center;
    border-radius: 41px;
    border: 1px #9d4008 solid;
    padding: 0px 20px 0px 20px;
    gap: 20px;
  }
  .core-card:last-child {
    grid-column: span 1 / span 1;
    width: unset;
  }
  .core-content {
    height: unset;
    padding: unset;
    border: unset;
    margin-top: unset;
    justify-content: start;
    align-items: start;
    padding: 10px 0px 30px 0px;
  }
  .core-number {
    position: relative;
    left: unset;
    transform: unset;
    font-size: 50px;
  }
  .core-heading {
    margin-top: 0;
    width: 100%;
    max-width: unset;
    text-align: start;
  }
  .core-text {
    width: 100%;
    max-width: unset;
    margin-top: 0;
    text-align: start;
  }
  .sustainability-img {
    display: none;
  }
}
